<?php
/**
 * Created by PhpStorm
 * User: Jhinwy
 * Date: 5/22/24
 * Time: 1:55 PM
 */


namespace App\Models;

class WechatPush extends BaseModel
{
    protected $table = 'wechat_push';

    protected $fillable = [
        'corp_id', 'open_kfid'
    ];


    const PUSH_TIME_ONE   = 15;
    const PUSH_TIME_TWO   = 30;
    const PUSH_TIME_THREE = 90;
    const PUSH_TIME_FOUR  = 240;
    const PUSH_TIME_FIVE  = 480;


    public static $pushTimeMapping = [
        [
            'id'    => self::PUSH_TIME_ONE,
            'label' => '15分钟',
        ],
        [
            'id'    => self::PUSH_TIME_TWO,
            'label' => '30分钟',
        ],
        [
            'id'    => self::PUSH_TIME_THREE,
            'label' => '1小时30分钟',
        ],
        [
            'id'    => self::PUSH_TIME_FOUR,
            'label' => '4小时',
        ],
        [
            'id'    => self::PUSH_TIME_FIVE,
            'label' => '8小时',
        ],
    ];
}
